package com.example.springboot;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.xml.crypto.Data;
import java.util.Date;
import java.util.List;
@Component @ConfigurationProperties(prefix = "person")
public class Person {
    private String name;
    private Integer age;
    private List<String> hobby;
    private Boolean oneDog;
    private Date birthday;
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public Integer getAge() {
        return age;
    }
    
    public void setAge(Integer age) {
        this.age = age;
    }
    
    public List<String> getHobby() {
        return hobby;
    }
    
    public void setHobby(List<String> hobby) {
        this.hobby = hobby;
    }
    
    public Boolean getOneDog() {
        return oneDog;
    }
    
    public void setOneDog(Boolean oneDog) {
        this.oneDog = oneDog;
    }
    
    public Date getBirthday() {
        return birthday;
    }
    
    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
